<script setup>
import zhCn from 'element-plus/es/locale/lang/zh-cn'
</script>

<template>
  <div>
    <el-config-provider :locale="zhCn">
      <!-- App.vue只需要留一个路由出口 router-view即可 -->
      <router-view></router-view>
    </el-config-provider>
  </div>
</template>

<style scoped></style>

<!-- <script setup>
import { useRouter, useRoute } from 'vue-router'
import { useUserStore, useCountStore } from './stores'
const router = useRouter()
const route = useRoute()
const goList = () => {
  router.push('/list')
  console.log(router, route)
}

const userStore = useUserStore()
const countStore = useCountStore()
</script>

<template>
  <div @click="goList">我是app</div>
  <el-button @click="goList">跳列表页</el-button>
  <p>{{ userStore.token }}</p>
  <el-button @click="userStore.setToken('测试设置userStore')">登录</el-button>
  <el-button @click="userStore.removeToken">退出</el-button>
  <hr />
  <p>{{ countStore.count }}</p>
  <el-button @click="countStore.add(2)">加法</el-button>
</template>

<style scoped></style> -->
